const moogoose = require('mongoose');

const userSchema = new moogoose.Schema({
    "userId":String,
    "userName":String,
    "userPwd":String,
    "orderList":Array,
    "cartList":[
        {
            "productId":String,
            "productName":String,
            "salePrice":String,
            "productImage":String,
            "checked":Boolean,
            "productNum":String,
        }
    ],
    "addressList":[
        {
            "addressId":String,
            "userName":String,
            "streetName":String,
            "postCode":String,
            "tel":String,
            "isDefault":Boolean
        }
    ]
});
module.exports = moogoose.model("User",userSchema);